package musicstore.web.rest;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import musicstore.biz.OrderBiz;
import musicstore.entity.Order;

@Controller
@RequestMapping("/admin/order")
public class OrderRestController {
	@Autowired
	private OrderBiz orderbiz;
	@RequestMapping(value="",method=RequestMethod.GET)
	@ResponseBody
	public List<Order> list(){
		return orderbiz.getAll();
	}
	
}
